import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)
let state = {
  //可修改字段
  otherData: {
    title: '批量生产',
    radio: false,
    url: '/production/picking/addPickingSub'
  },
  columnList: ['recipientsNumber', 'note'],
  columns: [{
      title: '货品名称',
      align: "center",
      width: 160,
      dataIndex: 'itemName',
      scopedSlots: {
        customRender: 'itemName'
      },
    },
    {
      title: '货品编码',
      width: 160,
      align: "center",
      dataIndex: 'itemCode',
      scopedSlots: {
        customRender: 'itemCode'
      },
    },
    {
      title: '规格',
      align: "center",
      width: 130,
      dataIndex: 'specifications',
      scopedSlots: {
        customRender: 'specifications'
      },
    },
    {
      title: '单位',
      align: "center",
      width: 130,
      dataIndex: 'unit',
      scopedSlots: {
        customRender: 'unit'
      },
    },
    {
      title: '剩余数量',
      align: "center",
      width: 130,
      dataIndex: 'number',
      scopedSlots: {
        customRender: 'number'
      },
    },
    {
      title: '领用数量',
      align: "center",
      dataIndex: 'recipientsNumber',
      scopedSlots: {
        customRender: 'recipientsNumber'
      },
    },
    {
      title: '备注',
      align: "center",
      dataIndex: 'note',
      scopedSlots: {
        customRender: 'note'
      },
    },
    {
      title: '操作',
      dataIndex: 'operation',
      width: 160,
      align: 'center',
      scopedSlots: {
        customRender: 'operation'
      },
    }
  ]
}
let mutations = {}
let actions = {}

export default {
  state,
  mutations,
  actions
}